<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="content-language" content ="vi" />
<title><?php echo $title_page; ?></title>
<meta name="description" content="<?php echo $descriptions; ?>" />
<meta name="keywords" content="<?php echo $keywords; ?>" />
<meta name="title" content="<?php echo $title_page; ?>" />
<meta http-equiv="Expires" content="0" />
<link href="<?php echo $FullUrl; ?>/css/styles.css" rel="stylesheet" type="text/css" />
<? $smallIcon = Info::getByName('icon tren tab browser'); ?>
<?=$smallIcon?$smallIcon['img']?'<link rel="shortcut icon" href="'.$FullUrl.'/'.$smallIcon['img'].'" type="image/x-icon" />':'':'';?>
<script type="text/javascript" src="<?php echo $FullUrl; ?>/js/external.php"></script>
<?php
global $do, $tpl, $FullUrl;
if (file_exists(TPL_DIR.$do."/head.php")){
		include(TPL_DIR.$do."/head.php");
}

?>
</head>

<body>
<div id="art-page-background-glare-wrapper">
  <div id="art-page-background-glare"></div>
</div>
<div id="art-main">
  <div class="cleared reset-box"></div>
  <div class="art-bar art-nav">
    <div class="art-nav-outer">
      <div class="art-nav-wrapper">
        <div class="art-nav-inner">
          <?php Template::UserControlTPL('Categories'); ?>
          <div class="login"><a href="<?=$FullUrl?>/register.html">Đăng Ký Thành Viên </a>| <a href="<?=$FullUrl?>/login.html">Đăng Nhập</a></div>
        </div>
      </div>
    </div>
  </div>
  <div class="cleared reset-box"></div>
  <div class="art-header">
    <div class="art-header-position">
      <div class="art-header-wrapper">
        <div class="cleared reset-box"></div>
        <div class="art-header-inner">
          <div class="art-logo">
            <h1 class="art-logo-name"><a href="./index.html">Happy Shop</a></h1>
          </div>
        </div>
      </div>
    </div>
  </div>
  <?
  	//echo $do;
	//echo $act;
  ?>
  
     <?
		$filename = UC_DIR_MD.$do.'/site/'.$do.'.php';
		//echo $filename;
		
		if(file_exists($filename)) 
			include($filename); 
		else
			print('This page is not available');
			
		//echo 'do: '.$do;
		//echo 'tpl: '.$tpl;	
		//echo 'act: '.$act;
	?>
	<?
		$filename = './kam/modules/'.$do.'/site/'.$tpl.'.php';
		echo $filename;
		
		if(file_exists($filename)) 
			include($filename); 
		else
			print('This page is not available');
     ?>
  <div class="art-footer">
    <div class="art-footer-body">
      <div class="art-footer-center">
        <div class="art-footer-wrapper">
          <?php Template::UserControlTPL('CopyRight'); ?>
        </div>
      </div>
      <div class="cleared"></div>
    </div>
  </div>
  <div class="cleared"></div>
</div>
</body>
</html>
